
#include <iostream>
#include <climits>
#include <cfloat>
#include <cmath>
using namespace std;

int main( )
{

    short sh1=SHRT_MIN-1;
    short sh2=SHRT_MAX+1;
    long lng1=LONG_MIN-1;
    long lng2=LONG_MAX+1;
    unsigned short unsh1=0-1;
    unsigned short unsh2=USHRT_MAX+1;
    unsigned long unlg1=0-1;
    unsigned long unlg2=ULONG_MAX+1;
    unsigned int uint=0-1;

    float flt1=FLT_MIN-1;
    float flt2=FLT_MAX+1;
    double dbl1=DBL_MIN-1;
            double dbl2=DBL_MAX+1;
            long double ldb1=LDBL_MIN-1;
            long double ldb2=LDBL_MAX+1;




    cout<<"|               |\t"<< "MIN|\t"<<" MAX     \t"<<"Min-1     |\t"<<"Max+1       |\t"<<endl;
            cout<<"|SHORT        \t";
               cout<<"|"<<SHRT_MIN<<"        \t";
               cout<<SHRT_MAX<<"     \t";
               cout<<sh1<<"     \t";
               cout<<sh2<<"\t"<<endl;
               cout<<"|___________________________________________________________________________|"<<endl;

               cout<<"|INT        \t";
                  cout<<"|"<<INT_MIN<<"\t";
                  cout<<INT_MAX<<"\t";
                  cout<<INT_MIN-1<<"\t";
                  cout<<INT_MAX+1<<"\t"<<endl;
                  cout<<"|___________________________________________________________________________|"<<endl;

                  cout<<"|LONG        \t";
                     cout<<"|"<<LONG_MIN<<"\t";
                     cout<<LONG_MAX<<"\t";
                     cout<<lng1<<"\t";
                     cout<<lng2<<"\t"<<endl;
                     cout<<"|___________________________________________________________________________|"<<endl;

                     cout<<"|UNSIGNED_SHORT        \t";
                        cout<<"0\t";
                        cout<<USHRT_MAX<<"     \t";
                        cout<<unsh1<<"             \t";
                        cout<<unsh2<<"\t"<<endl;
                        cout<<"|___________________________________________________________________________|"<<endl;

                        cout<<"|UNSIGNED_LONG        \t";
                           cout<<"0"<<"\t";
                           cout<<ULONG_MAX<<"\t";
                           cout<<unlg1<<"             \t";
                           cout<<unlg2<<"\t"<<endl;
                           cout<<"|___________________________________________________________________________|"<<endl;

                           cout<<"|UNSIGNED_INT        \t";
                              cout<<"0"<<"\t";
                              cout<<UINT_MAX<<"\t";
                              cout<<uint<<"             \t";
                              cout<<UINT_MAX+1<<"\t"<<endl;
                              cout<<"|___________________________________________________________________________|"<<endl;

                              cout<<"|FLOAT        \t";
                                 cout<<FLT_MIN<<"\t";
                                 cout<<FLT_MAX<<"\t";
                                 cout<<flt1<<"             \t";
                                 cout<<flt2<<"\t"<<endl;
                                 cout<<"|___________________________________________________________________________|"<<endl;

                                  cout<<"|DOUBLE       \t";
                                 cout<<DBL_MIN<<"\t";
                                 cout<<DBL_MAX<<"\t";
                                 cout<<dbl1<<"             \t";
                                 cout<<dbl2<<"\t"<<endl;
                                 cout<<"|___________________________________________________________________________|"<<endl;

                                  cout<<"|LONG DOUBLE  \t";
                                 cout<<LDBL_MIN<<"\t";
                                 cout<<LDBL_MAX<<"\t";
                                 cout<<ldb1<<"             \t";
                                 cout<<ldb2<<"\t"<<endl;
                                 cout<<"|___________________________________________________________________________|"<<endl;


                                 cout<<"sin(1.57)="<<sin(1.57)<<endl;
                                 cout<<"sin(0)="<<sin(0)<<endl;
                                 cout<<"sin(M_PI)="<<sin(M_PI)<<endl<<endl;

                                 cout<<"54/24="<<54/24<<endl;
                                 cout<<"54.0/24.0="<<54.0/24.0<<endl;
                                 cout<<"1.324532/0.3255432="<<1.324532/0.3255432<<endl;
                                 cout<<"54/0.3245234="<<54/0.3245234<<endl;

                                 return 0;
}
